//
// C++ Interface: progressbar
//
// Description: 
//
//
// Author: Os3 s.r.l. <xgui@os3.it>, (C) 2005
//
// Copyright: See COPYING file that comes with this distribution
//
//

namespace xgui
{
    %feature("docstring","derives from :class:`xgui.WidgetClass` ") ProgressbarClass;
	struct ProgressbarClass : public xgui::WidgetClass
	{
		ProgressbarClass();
		std::string const &className();
		bool isInstanceable();
		xgui::Object * create(xgui::Object * parent, xgui::StringMap &properties);
	};
    
    %feature("docstring","**DESCRIPTION**\n\nderives from :class:`xgui.Widget` \n\n**PROPERTIES**\n\n* **pos** *(RW):* sets or retrieves the current position of the progress counter\n\n* **min** *(RW):* sets or retrieves the starting position of the progress counter. default: \"0\"\n\n* **max** *(RW):* sets or retrieves the maximum position of the progress counter. default: \"100\"\n\n**EVENTS**\n\n* **onchange** *(linked to* :class:`xgui.TextCallback` *):* fired when the position of the progress counter changes. the string parameter passed to the callback function is the current progress counter position.\n\n**METHODS**\n\n") Progressbar;
	class Progressbar : public xgui::Widget
	{
		private:
			Progressbar(xgui::Container * parent, int min, int max);
			virtual ~Progressbar();

		public:
		    %feature("docstring","returns the current position of the progress counter\n\n*C++*::\n\n int getPos ();\n\n") getPos;
			int getPos ();
			%feature("docstring","sets the current postition of the progress counter\n\n*C++*::\n\n void setPos ( int pos );\n\n") setPos;
			void setPos ( int pos );
	};
}

%extend xgui::Progressbar {
	%pythoncode {
		def __del__(self):
			if self.valid: self.delPyOwner(self)
	}
}

